Cosmetics
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Jul 2013 01:43:16 +0000 (21:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Jul 2013 03:11:19 +0000 (23:11 -0400)
gtk/gtkcontainer.c
gtk/gtkwidget.c
gtk/gtkwindow.c

index 636a02e825092c05678f0996ed33adec0bc07948..2d6d2df9e46073a2b7fc8432ddbaab0011dd43ab 100644 (file)
@@ -1807,7 +1807,7 @@ _gtk_container_queue_restyle (GtkContainer *container)
  * (typically the toplevel, but other containers can be set as resize
  * containers with gtk_container_set_resize_mode()), marks the container
  * and all parents up to and including the resize container as needing
- * to have sizes recompted, and if necessary adds the resize container
+ * to have sizes recomputed, and if necessary adds the resize container
  * to the queue of containers that will be resized out at idle.
  */
 void
index c80d1a5b52e6502bde6740256b93ef8052b119fd..8a3b0a08657262e7691a9c4cb81fee1bfcb52da4 100644 (file)
@@ -6528,7 +6528,7 @@ _gtk_widget_draw_windows (GdkWindow *window,
            continue;
 
          gdk_window_get_position (child_window, &wx, &wy);
-         _gtk_widget_draw_windows (child_window, cr, wx,wy);
+         _gtk_widget_draw_windows (child_window, cr, wx, wy);
        }
       g_list_free (children);
     }
index 521b38910c5127ec6eb1b2e4bbb18aa6e6e305ef..ccf8349183a09513ee7a296d180a9aaea7a0b245 100644 (file)
@@ -5265,7 +5265,7 @@ create_decoration (GtkWidget *widget)
                     NULL);
       context = gtk_widget_get_style_context (priv->title_box);
       gtk_style_context_add_class (context, "titlebar");
-      gtk_widget_set_parent (priv->title_box, GTK_WIDGET (window));
+      gtk_widget_set_parent (priv->title_box, widget);
 
       title = g_markup_printf_escaped ("<b>%s</b>",
                                        priv->title ? priv->title : get_default_title ());
@@ -8326,7 +8326,6 @@ gtk_window_move_resize (GtkWindow *window)
    * If the configure request has not changed, we don't ever resend
    * it, because it could mean fighting the user or window manager.
    *
-   * 
    *   To prepare the configure request, we come up with a base size/pos:
    *      - the one from gtk_window_move()/gtk_window_resize()
    *      - else default_width, default_height if we haven't ever
@@ -8594,8 +8593,7 @@ gtk_window_move_resize (GtkWindow *window)
            * to postpone our configure request until later.
            */
          info->last = saved_last_info;
-          
-         gtk_widget_queue_resize_no_redraw (widget); /* migth recurse for GTK_RESIZE_IMMEDIATE */
+         gtk_widget_queue_resize_no_redraw (widget); /* might recurse for GTK_RESIZE_IMMEDIATE */
        }
 
       return;                  /* Bail out, we didn't really process the move/resize */